import Http from '@/http';

export function listApi() {
    return Http.get('userGroup/list')
}

export function saveApi(params) {
    return params.id ? Http.post('userGroup/update', params) : Http.post('userGroup/add', params)
}

export function deleteApi(id) {
    return Http.post('userGroup/delete', {id: id})
}

export async function optionsApi() {
    const r = await Http.get('userGroup/list')
    return r.data
}